package com.ta.stage.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "policy")
@ApiModel(description = "报警策略")
public class Policy implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "报警策略名称")
    private String name;

    @ApiModelProperty(value = "分贝")
    private Float db;

    @ApiModelProperty(value = "是否启动关键词")
    private Integer visible;

    @ApiModelProperty(value = "报警策略描述")
    private String remark;

    @ApiModelProperty(value = "逻辑删除（1：已删除 0：未删除）")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "备用2")
    private String by2;
}
